//package com.cwm.handler;
//
//import feign.hystrix.FallbackFactory;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Component;
//
//@Slf4j
//@Component
//public class NacosProviderClientFallback implements FallbackFactory<NacosProviderClient> {
//
//    @Override
//    public NacosProviderClient create(Throwable throwable) {
//        return new NacosProviderClient() {
//            @Override
//            public String abc(String name, int age) {
//                log.error("用 nacos-provider abc 方法失败, 异常信息={}", throwable.getMessage());
//                //throw new RuntimeException("abc:" + throwable.getMessage());
//                //这里直接返回BusinessException()，因为
//                throw new RuntimeException("aaaaaaadssssssssssss");
////                return throwable.getClass().getName() + " : " + throwable.getMessage();
//            }
//
//            @Override
//            public String getEcho(String string) {
//                log.error("用 nacos-provider getEcho 方法失败", throwable);
//                throw new RuntimeException("getEcho:" + throwable.getMessage());
//            }
//        };
//    }
//}
